package com.anytrek.clouduser.service;

import com.anytrek.cloudcommon.entity.UsersEntity;
import com.anytrek.cloudcommon.utils.ApiResult;
import com.baomidou.mybatisplus.extension.service.IService;

/**
* @author Alex2
* @description 针对表【t_users】的数据库操作Service
* @createDate 2025-08-22 10:48:54
*/
public interface UsersService extends IService<UsersEntity> {

    ApiResult insertUser(String username, String password, Integer age, Integer balance);

    ApiResult getUserById(Integer id);

    ApiResult deductBalance(Integer id, Integer amount);
}
